<?php
  
 $level = [php_property:level];
 
 
 $parentId = -1;
 if (isset(config::$parentList[$level])) {
    $parentId = config::$parentList[$level];
 }
 
  
                                                        //AND _usergroup<=$userGrp 
   $sqlMenu       ="SELECT * FROM content,usergroup WHERE _usergroup=usergroup.id AND menu_active = 1 AND usergroup_number<='".config::$userData["usergroup_number"]."'
            AND item_parent_id = '$parentId' ORDER BY item_order";
            
            echo $sqlMenu;
  
  
   /*$sqlMenu       ="SELECT * FROM content WHERE menu_active = 1 AND _usergroup<='".config::$userData["usergroup_number"]."'
            AND item_parent_id = '$nodeId' $domainSql ORDER BY item_order"; */
  
  foreach (db::getQuery($sqlMenu) as $dataquery_menu) {
      
?>